package com.globallogic.oopbasics.competence.entity;

import com.globallogic.oopbasics.competence.exception.LevelException;

/**
 * @author olena.strelchuk
 */

public class TechCompetency extends AbstractCompetency {

	private static final String PARAM_TEST_TASK_LEVEL = "Test task level";
	private static final String PARAM_TECH_INTERVIEW_LEVEL = "Tech interview level";

	/**
	 * Constructor for TechCompetency
	 */
	public TechCompetency(int id, String name, double value)
			throws LevelException {
		super(id, name, value);
		addParam(PARAM_TECH_INTERVIEW_LEVEL);
		addParam(PARAM_TEST_TASK_LEVEL);

		if ((value < 0) || (value > 1)) {
			throw new LevelException(value);
		}
	}
}
